import time
from selenium import webdriver
import os

prefs = {
    "download.default_directory": os.path.join(os.getcwd(), "downloads")
}

options = webdriver.ChromeOptions()
options.add_argument("--window-size=1920,1080")
options.add_experimental_option("prefs", prefs)

driver = webdriver.Chrome(options=options)
driver.get("https://the-internet.herokuapp.com/download")

ELEMENTS = driver.find_elements("xpath", "//div[@class='example']//a")

for file_link in ELEMENTS:
    file_link.click()
